connection in a 2 way switch